package com.hashnode.springboot_0001_quickstart.controller;

import com.hashnode.springboot_0001_quickstart.bean.User;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "test")
public class ReadTest {
    String country;

    User user;

    List<String> likes;
    List<String> likes2;

    List<User> users;

    List<User> users2;

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<String> getLikes() {
        return likes;
    }

    public void setLikes(List<String> likes) {
        this.likes = likes;
    }

    public List<String> getLikes2() {
        return likes2;
    }

    public void setLikes2(List<String> likes2) {
        this.likes2 = likes2;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public List<User> getUsers2() {
        return users2;
    }

    public void setUsers2(List<User> users2) {
        this.users2 = users2;
    }

    @Override
    public String toString() {
        return "ReadTest{" +
                "country='" + country + '\'' +
                ", user=" + user +
                ", likes=" + likes +
                ", likes2=" + likes2 +
                ", users=" + users +
                ", users2=" + users2 +
                '}';
    }
}
